package com.robot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Created with IntelliJ IDEA.
 * User: li
 * Date: 2019/3/10
 * Time: 10:32
 * PROJECT：robot
 * PACKAGE: com.robot
 *
 * @author:55324936@qq.com To change this template use File | Settings | File Templates.
 */
@SpringBootApplication
@EnableScheduling
@EnableTransactionManagement
public class SpringbootApplication {
    /**
     * 固定写法,springboot 是通过main方法去启动的
     * 通过 @SpringBootApplication注解标记当前类是整个工程的启动类
     * 注解被识别的前提是，拥有注解的类必须在SpringbootApplication的同级别或者子包下面，才能被扫描到
     *
     * **/
    public static void main(String[] args) {
        SpringApplication.run(SpringbootApplication.class,args);
    }

}
